<?php

namespace Aitels\Design;

use Illuminate\Support\Str;

class Util
{
    public static function snakeCase($pascalCase)
    {
        return Str::plural(Str::snake($pascalCase));
    }

    public static function toArrayList($stdObjectList)
    {
        foreach ($stdObjectList as &$stdObject){
            $stdObject=(array) $stdObject;
        }
        return $stdObjectList;
    }
}